package com.fudan.backend.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public class BaseException extends RuntimeException {
    private int code;
    private String message;
    public BaseException(RetCode retCode){
        this.code = retCode.getCode();
        this.message = retCode.getMessage();
    }

}
